package com.cjyd.hrjb.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cjyd.hrjb.model.enums.AdminRole;
import com.cjyd.hrjb.model.enums.AdminState;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * Created fei wo by 2020/4/5
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "admin", keepGlobalPrefix = true)
public class Admin extends BaseEntity{

    private String email;

    private String passwordHash;

    private String nickname;

    private AdminState state;

    private AdminRole role;

    @TableField(exist = false)
    private String token;
}
